package service

import (
	"errors"
	"gin_wuwen_back/dao"
	"gin_wuwen_back/param"
)

func (tmp *Service_func) Padlogin(p *param.RegisterParame) (err error) {
	md := dao.NewPadDao()
	if p.Username == "" {
		err = errors.New("用户名为空")
		return err

	}
	return md.PaddingUsername(p.Username)

}
